package org.example;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: HelloController
 * Package: org.example
 * Description:
 *快速入门
 * @Author SherryAn
 * @Create 2025/8/9 11:50
 */

@RestController//表示当前类是一个请求处理类
public class HelloController {

    @RequestMapping("/hello")//标识请求路径
    public String hello(String name){
        return "Hello "+name;
    }

}
